package com.smxpt.Controller;

import com.smxpt.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    @Qualifier("userService")
    private UserService userService;
    public void save() {
        this.userService.save();
        System.out.println("执行了UserController实现类的save方法");
    }
}
